<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>绘制图片</title>
  <style>
      canvas {
          border: 1px solid red;
      }
      .base {
          width: 100px;
          height: 100px;
          display: inline-block;
          background-color: #0EA9FF;
          border-width: 5px;
          border-style: solid;
          border-color: #5daf34;
          transition-property: width,height,background-color,border-width;
          transition-duration: 2s;
          transition-timing-function: ease-in;
          transition-delay: 500ms;
      }
      /*简写*/
      /*transition: all 2s ease-in 500ms;*/
      .base:hover {
           width: 200px;
           height: 200px;
           background-color: #5daf34;
           border-width: 10px;
           border-color: #3a8ee6;
       }

      .base2{
          transform:none;
          transition-property: transform;
      }
      .base2:hover {
           transform:scale(0.8, 1.5) rotate(35deg) skew(5deg) translate(15px, 25px);
       }



      @-ms-keyframes boke /* -ms-为了兼容IE 浏览器*/
      {
          0%   {background: green;}
          25%  {background: yellow;}
          50%  {background: blue;}
          100% {background: red;}
      }

      @-moz-keyframes boke /* -moz-为了兼容Firefox 浏览器*/
      {
          0%   {background: green;}
          25%  {background: yellow;}
          50%  {background: blue;}
          100% {background: red;}
      }

      @-webkit-keyframes boke /* -webkit-为了兼容Safari 和 Chrome 浏览器*/
      {
          0%   {background: red;}
          25%  {background: yellow;}
          50%  {background: blue;}
          100% {background: green;}
      }

      @-o-keyframes boke /*-o-为了兼容 Opera浏览器 */
      {
          0%   {background: red;}
          25%  {background: yellow;}
          50%  {background: blue;}
          100% {background: green;}
      }

      div {
          transform: translate(100px);
          animation-name: boke;
          animation-duration: 5s;
          animation-timing-function: linear;
          animation-delay: 2s;
          animation-iteration-count: infinite;
          animation-direction: alternate;
          animation-play-state: running;
      }

      body{
          overflow: hidden;
          border: 1px solid olivedrab;
          margin: 0;
      }

      #draw-wrap {
          width: 100vw;
          height: 100vh;
      }

  </style>
</head>

<body>
<div id="draw-wrap">
  <div>11111111</div>
  <div class="base"></div>
  <h5>transition配合transform一起使用</h5>
  <div class="base base2"></div>
  <canvas width="500" height="400"></canvas>
</div>



<script>
</script>
</body>

</html>
